#include <stdio.h>

int is_leap_year(int year)
{
	return ((year % 400 == 0) || ((year % 4 == 0) && (year % 100 != 0))); 
}

int main()
{
	int year = 0;
	int count = 0;
	for(year = 1000; year <= 2000; year++)
	{
		if(is_leap_year(year))
		{
			count++;
			printf("%d ", year);
		}
	}
	printf("\ncount = %d", count);

	return 0;
}
